<script type="text/javascript">

 
/*  $(function(){	
		//获取传过来的页面的值
		$.get("query/updateapp",updateapp,"json");	
	});
	  */
	  /* 动态获取卡应用大类名称 */
$(function(){
	$.get("openstop/Card",function(data){
		var content="<option value='' selected>请选择</option>";
		var i;
		$(data).each(function(n,item){
			for(i=0;i<item.sdd.length;i++){
				content+="<option value="+item.sdd[i].appKindId+">"
				+item.sdd[i].appKindName+"</option>"
			}
			$("#eeel").html(content);
		});
	},"json");
}); 
/* 动态获取卡应用类型名称 */
 $(function(){
	 //alert(99999999999);
	$.get("ApplicationTypeDefinition/leixing",function(data){
		var content="<option value='' selected>请选择</option>";
		var i;
		$(data).each(function(n,item){
			for(i=0;i<item.sdd.length;i++){
				content+="<option value="+item.sdd[i].appKindId+">"
				+item.sdd[i].appKindName+"</option>"
			}
			$("#lei").html(content);
		});
	},"json");

});  
/*   function commitTypeApp(json){
	 if(json!=null){
		 $("input[name='cardapplicationtypes']").val("1")//修改卡应用名称
		 $("input[name='cardapplicationtypename']").val(json.cardapplicationtypename);
		 $("input[name='apptype']").val(json.apptype);
		 $("input[name='isaccountFlag']").val(json.isaccountFlag);
		 $("input[name='accounttype']").val(json.accounttype);
		 $("input[name='day']").val(getDate(json.day));
		 $("input[name='applicationauthenticationtype']").val(json.applicationauthenticationtype);
		 $("input[name='remark']").val(json.remark);
		 $("input[name='applicationtypecode']").val(json.applicationtypecode);
		 $("input[name='iswritecard']").val(json.iswritecard);
		 $("input[name='isstop']").val(json.isstop);
		 $("input[name='isMonth']").val(json.isMonth);
		 $("input[name='annualsurvey']").val(json.annualsurvey);
		 $("input[name='isOnline']").val(json.isOnline);
		 $("input[name='applicationidentifier']").val(json.applicationidentifier);
		 $("input[name='isdate']").val(json.isOnline);
		 $("input[name='yearday']").val(json.yearday);
		 $("select[name='appKindId']").find("option").each(function(n,item){
			 if(json.appKindName==$(this).text()){
				 $(this).attr("selected","selected")
			 })
		 })
	 else{
		 $("input[name='cardapplicationtypes']").val("0")//新增卡应用名称 
	 }
	
 }
 } */



</script>
<div class="pageContent">
	<form id="getApp" method="post" action="ApplicationTypeDefinition/commitTypeApp" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
		<div class="pageFormContent" layoutH="106">

	                 	<p>
							<label>卡应用类型大类：</label>
							<select id="eeel" name="cardapplicationtypes" class="required">
							<option  class="required" value="50">请选择</option>
			                </select>
						</P>
		                   <p>
							<label>卡应用类型名称：</label>
							<select id="lei" name="cardapplicationtypename" class="required">
							<option  class="required" value="50">请选择</option>
			                </select>
							</P>
		    
				       <dl>
							<dt>应用类型：</dt>
							<dd>
								<input type="text" name="apptype" class="required digits" size="5"  />
							</dd>
						</dl>
                  		 <p>
							<label>是否后台有账户：</label>
							<select id="recharge" name="isaccountFlag" class="required">
							<option  class="required" value="50">请选择</option>
					<option value="50">是</option>
                      <option value="100">否</option>
			                </select>
						</P>
												                   <p>
							<label>账户类型：</label>
							<select id="recharge" name="accounttype" class="required">
							<option  class="required" value="50">请选择</option>
				<!-- 	<option value="50">是</option>
                      <option value="100">否</option> -->
			                </select>
						</P>
										       <dl>
							<dt>开通提前天数：</dt>
							<dd>
								<input type="text" name="day" class="required" size="5"  />
							</dd>
						</dl>
															       <dl>
							<dt>应用认证类型：</dt>
							<dd>
								<input type="text" name="applicationauthenticationtype" class="required" size="5"  />
							</dd>
						</dl>
															       <dl>
							<dt>备注：</dt>
							<dd>
								<input type="text" name="remark"  size="5"  />
							</dd>
						</dl>
															       <dl>
							<dt>应用类型代码：</dt>
							<dd>
								<input type="text" name="applicationtypecode" class="required" size="5"  />
							</dd>
						</dl>
						                   <p>
							<label>是否写卡：</label>
							<select id="recharge" name="iswritecard" class="required">
							<option  class="required" value="50">请选择</option>
					<option value="50">是</option>
                      <option value="100">否</option>
			                </select>
						</P>
												                   <p>
							<label>是否可停用：</label>
							<select id="recharge" name="isstop" class="required">
							<option  class="required" value="50">请选择</option>
					<option value="50">是</option>
                      <option value="100">否</option>
			                </select>
						</P>
						<dl>
							<dt>有效月数：</dt>
							<dd>
								<input type="text" name="isMonth" class="digits" size="5"  />
							</dd>
						</dl>
														                   <p>
							<label>是否需年检：</label>
							<select id="recharge" name="annualsurvey" class="required">
							<option  class="required" value="50">请选择</option>
					<option value="50">是</option>
                      <option value="100">否</option>
			                </select>
						</P>
				<p>
							<label>是否联机应用：</label>
							<select id="recharge" name="isOnline" class="required">
							<option  class="required" value="50">请选择</option>
					<option value="50">是</option>
                      <option value="100">否</option>
			                </select>
						</P>
														<dl>
			<dt>应用标识：</dt>
			<dd>
				<input type="text" name="applicationidentifier" class="required digits" size="5"  />
			</dd>
		</dl>
																<dl>
			<dt>默认生效日期：</dt>
			<dd>
				<input type="text" name="date" class="date textInput readonly valid" readonly="true" size="8"  />
				<a class="inputDateButton" href="javascript:;">选择</a>
			</dd>
		</dl>
																<dl>
			<dt>年审提前天数：</dt>
			<dd>
				<input type="text" name="yearday" class="numberday digits" size="5"  />
			</dd>
		</dl>
	
	
	
		<div class="divider"></div>		
</div>		
		<div class="formBar1">
			<ul> 
				<li>
				<div class="buttonActive"><div class="buttonContent"><button id="submit" type="submit">提交</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>